package com.anli1.timedTask;

import com.anli1.Confog.ThreadPool.getData;

import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.ThreadPoolExecutor;
@Configuration
public class qjtb_syncThreadPool {
    @Autowired
    ThreadPoolExecutor threadPool;
    @Autowired
    getData getData;




    @XxlJob(value = "kctb")
    public void qjtb_syncThreadPool()
    {
        for (int i=0;i<10;i++)
        {
            threadPool.execute(getData);
        }

    }
}
